<%@ page language="java" pageEncoding="UTF-8" %>

<form action="${pageContext.request.contextPath}/LoginServlet" method="post">
	<table>
		<tr>
			<td>用户名</td>
			<td><input type="text" id="name" name="name" onkeyup="checkUsername();" /></td>
			<td><span id="nameMsg"></span></td>
		</tr>
		<tr>
			<td>密&nbsp;码</td>
			<td><input type="password" id="password" name="password" onkeyup="checkPassword();" /></td>
			<td><span id="passwordMsg"></span>
				请输入6-16位密码
			</td>
		</tr>
		<tr>
			<td>验证码</td>
			<td><input type="text" name="vericode"></td>
			<td><img src="${pageContext.request.contextPath}/VerifyCode" onClick="this.src=this.src+'?'" /></td>
		</tr>
		<tr>
		<td></td>
		<td></td><td></td><td></td><td></td><td></td>
			<td align="right"><input type="submit" value="登录" /></td>
		</tr>
	</table>
</form>